package com.tongji.housediy.utils
{
	import flash.net.URLRequest;
	import flash.net.navigateToURL;

	/**
	 * 
	 * @author yanghanbing
	 * 2011/7/
	 */ 
	public class ShareAdmin
	{
		public function ShareAdmin()
		{
		}
		
		public static function shareAdmin(shareTag:String, title:String, currentURL:String):void
		{
			switch(shareTag)
			{
				case "kaixin":
					var kaixin:String = "http://www.kaixin001.com/repaste/share.php??title=" + title  + "&rurl=" + currentURL + "&image";
					navigateToURL(new URLRequest(kaixin), "_blank"); 
					break;
				case "renren":
					var renren:String = " http://share.renren.com/share/buttonshare.do?link=" + currentURL + "&image";
					navigateToURL(new URLRequest(renren), "_blank"); 
					break;
				case "sina":
					var sina:String = "http://v.t.sina.com.cn/share/share.php?url=" + currentURL + "&title=" + title + "&image";
					navigateToURL(new URLRequest(sina), "_blank");
					break;
				case "tencent":
					var tencent:String = "http://v.t.qq.com/share/share.php?title=" + title + "&url=" + currentURL + "&pic";
					navigateToURL(new URLRequest(tencent), "_blank");
					break;
				case "baishehui":
					var baishehui:String = "http://bai.sohu.com/share/blank/add.do?link=" + currentURL;
					navigateToURL(new URLRequest(baishehui), "_blank");
					break;
				case "douban":
					var douban:String = "http://www.douban.com/recommend/?url=" + currentURL + "&title=" + title;
					navigateToURL(new URLRequest(douban), "_blank");
					break;				
			}	
		}
	}
}